package com.quan.api.oms;

import com.quan.commons.core.bean.R;
import com.quan.commons.core.biz.support.MyBaseController;
import com.quan.commons.core.utils.PageUtils;
import com.quan.mall.commons.vo.OmsOrderReturnReasonVo;
import com.quan.mall.service.OmsOrderReturnReasonService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 订单-退货原因
 * @author yhaoquan
 * @email yhaoquan@163.com
 * @date 2021-03-09 17:22:38
 */
@Slf4j
@Api(tags = "订单-退货原因")
@RestController
@RequestMapping("/api/mall/omsorderreturnreason")
public class ApiOmsOrderReturnReasonController extends MyBaseController {

    @Autowired
    private OmsOrderReturnReasonService service;

    /**
     * 列表查询
     * @param vo
     * @return
     */
    @GetMapping(value = "list")
    public Object list(OmsOrderReturnReasonVo vo) {
        List<OmsOrderReturnReasonVo> list = this.service.queryList(new PageUtils(request), vo);
        return R.ok().put("data", list);
    }

}
